import request from '@/utils/request'

/**
 * 仪器
 */
/**
 * 新增仪器
 * @param data
 * @returns {AxiosPromise}
 */
export function save(data) {
  return request({
    url: '/api/rs/equipment/save',
    method: 'post',
    data
  })
}

/**
 * 修改仪器
 * @param data
 * @returns {AxiosPromise}
 */
export function update(data) {
  return request({
    url: '/api/rs/equipment/update',
    method: 'post',
    data
  })
}

/**
 * 修改仪器状态
 * @param data
 * @returns {AxiosPromise}
 */
export function updateStatus(data) {
  return request({
    url: '/api/rs/equipment/update_status',
    method: 'post',
    data
  })
}

/**
 * 删除仪器状态
 * @param data
 * @returns {AxiosPromise}
 */
export function deleted(data) {
  return request({
    url: '/api/rs/equipment/delete',
    method: 'post',
    data
  })
}

/**
 * 分页仪器模板
 * @param data
 * @returns {AxiosPromise}
 */
export function page(data) {
  return request({
    url: '/api/rs/equipment/page',
    method: 'post',
    data
  })
}
